// src/components/ButtonGroup/types.ts
import type { ButtonProps } from 'element-plus'

export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'

export interface ButtonItem {
    text?: string
    i18nKey?: string
    type?: ButtonType
    icon?: Component
    permission?: string | string[]
    event?: string | Function
    loading?: boolean
    disabled?: boolean
    dropdown?: boolean
    items?: DropdownItem[]
    props?: Partial<ButtonProps>
}

export interface DropdownItem {
    label: string
    command: string
    disabled?: boolean
}